home *** CD-ROM | disk | FTP | other *** search
/ CD ROM Paradise Collection 4 / CD ROM Paradise Collection 4 1995 Nov.iso / os2 / adaptor.zip / ADAPT.ZIP / adaptor / examples / simple / makefile < prev    next >
Makefile  |  1993-11-17  |  2KB  |  108 lines

  1. #
  2. # BEWARE: this Makefile was automatically generated by Adaptor
  3. #         Adaptor will not overwrite any changes you make here,
  4. #         however this Makefile may become out of date
  5. # Target machine is SGI     (PVM)   (Host-Node)
  6. #
  7. # PHOME is Home Directory of Adaptor 
  8. # DALIB is directory of its implementation for this machine
  9. #
  10. PHOME =  $(HOME)/adaptor1.1
  11. DALIB  = $(PHOME)/dalib/PVM3.1
  12. #
  13. # Standard commands
  14. ADAPTOR = $(PHOME)/bin/fadapt
  15. FSPLIT  = fsplit
  16. FSTRIP  = $(PHOME)/bin/fstrip
  17. #
  18. FC  = f77
  19. NFC = f77
  20. FSPLIT = fsplit
  21. CC  = cc
  22. #
  23. # Compiler Options
  24. OPT  = -O -w
  25. NOPT = -O -w
  26. #
  27. ARCH = SGI
  28. PVM  = $(HOME)/pvm3
  29. #
  30. XLIB  = $(DALIB)/libadpx.a -lX11
  31. NLIB  = $(DALIB)/dalib.a
  32. HLIB  = $(DALIB)/hostlib.a
  33. LIB1  = $(DALIB)/unilib.a
  34. #
  35. # main programs of host, node, cube
  36. #
  37. MAIN_HOST  = $(DALIB)/mhost.o
  38. MAIN_NODE  = $(DALIB)/mnode.o
  39. MAIN_CUBE  = $(DALIB)/mcube.o
  40. MAIN_NODE1 = $(DALIB)/mnode1.o
  41. #
  42. PVMLIB = $(PVM)/lib/$(ARCH)/libpvm3.a
  43. #
  44. # Object Codes
  45. #
  46. NODE_OBJ = node.o
  47. NSRC = node.f
  48. #
  49. HOST_OBJ = host.o
  50. HSRC = host.f
  51. #
  52. CUBE_OBJ = cube.o
  53. #
  54. OBJ1 = node1.o
  55. #
  56. all: host node
  57.     mv node $(PVM)/bin/$(ARCH)
  58. #
  59. host: $(HOST_OBJ) $(MAIN_HOST) $(NLIB) $(PVMLIB)
  60.     ${FC} -o host $(MAIN_HOST) $(HOST_OBJ) $(NLIB) $(PVMLIB)
  61. #
  62. node: $(NODE_OBJ) $(MAIN_NODE) $(NLIB) $(PVMLIB)
  63.     ${FC} -o node $(MAIN_NODE) $(NODE_OBJ) $(NLIB) $(PVMLIB)
  64. #
  65. cube: $(CUBE_OBJ) $(MAIN_CUBE) $(NLIB) $(PVMLIB)
  66.     ${FC} -o cube $(MAIN_CUBE) $(CUBE_OBJ) $(NLIB) $(PVMLIB)
  67. #
  68. node1: $(MAIN_NODE1) $(OBJ1) $(LIB1)
  69.     ${FC} -o node1 $(MAIN_NODE1) $(OBJ1) $(LIB1)
  70. #
  71. # So that we don't get the default rules
  72. #
  73. .SUFFIXES:
  74. .SUFFIXES: .f .o .strip
  75. # Fortran compilation rule
  76. .f.o:
  77.     $(NFC) $(NOPT) -c $<
  78. #
  79. # Width stripping rule
  80. .f.strip:
  81.     $(FSTRIP) $< ; touch $@
  82. #
  83. #
  84. # Compilation rules: host sources, node sources
  85. #
  86. host.o: host.strip host.f
  87.     $(FC) $(OPT) -c host.f
  88. #
  89. node.o: node.strip node.f
  90.     $(NFC) $(NOPT) -c node.f
  91. #
  92. cube.o: cube.strip cube.f
  93.     $(NFC) $(NOPT) -c cube.f
  94. #
  95. node1.o: node1.strip node1.f
  96.     $(NFC) $(NOPT) -c node1.f
  97. #
  98. # Target to perform adaption
  99. #
  100. adapt: frc
  101.     $(ADAPTOR) -sgipvm -H prime.f 
  102. #
  103. frc:
  104. #
  105. clean:
  106.     -rm -f *.o node host node1 cube core $(NSRC) $(HSRC) zzz*.f
  107. #
  108.